Skip to main content

Add Sheet

AutomatR.Excel.Activities.AddSheet

The "Add Sheet" activity in AutomatR is part of the Excel activities package, designed to add a new sheet to the specified Excel workbook. This activity enhances automation capabilities in Excel by facilitating the dynamic creation of sheets within the workbook.

Properties

NameDescription
Input
New SheetSpecifies the name of the new sheet to be added to the existing workbook. It allows a string variable containing the desired sheet name.
Misc
Display NameThe display name of the activity. A display name is automatically generated when you indicate a target.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Add Sheet" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.

How to use:

  1. Drag and drop the "Add Sheet" activity onto the workflow.
  2. Configure the properties by specifying the new sheet name.
  3. Optionally, configure the delay.
  4. Execute the workflow to add a new sheet to the Excel workbook.

Example: Consider an example where the "Add Sheet" activity is used to add a new sheet named "Sheet3" to the existing Excel workbook:

Add Sheet:
New Sheet: "Sheet3"
Delay: 2

In this example, the activity adds a new sheet named "Sheet3" to the existing Excel workbook. The optional delay is set to 2 seconds, providing time for any necessary synchronization.